Learning XNA 4.0 by Aaron Reed

Learning XNA 4.0 by Aaron Reed

Author:Aaron Reed [Aaron Reed]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming / Games
ISBN: 9781449394714
Publisher: O'Reilly Media
Published: 2010-12-13T16:00:00+00:00


Figure 12-6. Track1 and Track2 sounds are both now associated with the Tracks cue name

You’ll now need to do the same thing with the explosion sounds. You have three sounds for explosions loaded in your wave bank. Drag all three explosion sounds from the Wave Bank window and drop them into the Sound Name section of the Sound Bank window.

Right-click somewhere in the Cue Name section of the Sound Bank window and select New Cue. Select the new cue and hit F2 to rename it. Call the new cue Explosions.

Then, drag each of the explosion sounds from the Sound Name section of the Sound Bank window and drop them onto the new Explosions cue in the Cue Name section of the Sound Bank window. Notice that each of the explosion sounds is automatically assigned a 33% chance of being played when the Explosions cue is played.

Your Sound Bank window should now look something like Figure 12-7.

Before closing XACT, you’ll want to set the looping properties of both the Track1 and Track2 sounds to infinite. First, select the Track1 sound in the Sound Name section of the Sound Bank window. Then, in the lower-left corner of the screen, click the Infinite checkbox in the looping section, as shown in Figure 12-8. Repeat this step for Track2 as well.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.